<template>
	<view class="y-page-common page">
		<view class="card form">
			<cell title='申请人姓名' disabled="true" mode="input" v-model="formData.name" required></cell>
			<cell title='预留手机号' mode="input" v-model="formData.phoneNo"></cell>
			<cell title='短信密码' mode="pwd" maxlength="6" v-model="formData.pwd"></cell>
			<!-- <cell title='短信密码' mode="radios" :radios="[{label: '是', value: '1'}, {label: '否', value: '2'}]" v-model="formData.cardNo" required></cell> -->
		</view>
		<view class="tips y-color-info ">
			<text>温馨提示</text>
			<view class="">1.交行卡包含交行借记卡和信用卡。</view>
			<view class="">2.若取法提供交行卡，可点击“其他认证方式”。</view>
		</view>
		<view class="btns">
			<ReadmeBtn class="btn" :readme="[]" text="提交认证" @submit="jumpTo"></ReadmeBtn>
			<ReadmeBtn class="btn" :readme="[]" text="其他认证方式" btnType="default" @submit="otherAuthType"></ReadmeBtn>
		</view>

	</view>

	</view>
</template>

<script>
	import cell from "@/components/cell.vue"
	export default {
		components: {
			cell
		},
		data() {
			return {
				formData: {
					name: '张三',
					phoneNo: '136 **** ****',
					pwd: '666888'
				},
			}
		},
		onLoad() {

		},
		onShow() {
			//const userInfo = uni.getStorageSync('userInfo')
			//this.formData = {...userInfo}
		},
		methods: {
			async jumpTo() {
				await this.$myloading() // async
				uni.navigateTo({
					url: '/pages/personal/IDAuth/IDAuthComplete'
				})
			},
			// 跳转其他认证方式
			otherAuthType() {
				uni.navigateTo({
					url: '/pages/personal/IDAuth/faceIdentify'
				})
				// uni.showToast({
				// 	icon: "none",
				// 	title: '暂未开通',
				// 	duration: 3000,
				// 	position: 'top'
				// })
			}
		}
	}
</script>

<style scoped lang="scss">
	.page {
		width: 100%;
		height: 100%;
		position: absolute;

		.form {
			margin-bottom: 200rpx;
		}

		.tips {
			padding: 30rpx;
		}

		.btns {
			width: 100%;
			display: flex;
			position: fixed;
			bottom: 0;
			left: 0;
			background-color: #fff;
			flex: 1;

			.btn {
				width: 100vw;
			}
		}
	}
</style>